package guoanmaker.operator.business.model;

import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import guoanmaker.operator.business.modelnobind.LuckdrawRecordAndCoupons;
import guoanmaker.operator.business.modelnobind.OperatorLuckdrawAndDetails;
import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name="t_operator_luckdraw")
public class OperatorLuckdraw extends IdEntity {
	private String  prizeName;//奖项
	private Double  probability;//中奖率
	private Integer number;//数量
	private String  picUrl;//图片
	private Date    timeStart;//开始时间
	private Date    timeEnd;//结束时间
	private Integer maxDrawNum;//当前时间最大中奖数
	private Integer drawnum;//抽中数量
	private String  activityId;//活动id
	private Integer isCoupons;//是否应用优惠券
	private String  couponsId;//优惠券id
	private Integer weight;//权重
	
	@Transient
	private String userId;
	@Transient
	public String getUserId() {
		   return userId;
	 }
	@Transient
	private Integer  surplusNum;
	@Transient
	public Integer getSurplusNum() {
		   return surplusNum;
	 }
	@Transient
	public List<OperatorLuckdrawAndDetails>  drawList;
	@Transient
	public List<OperatorLuckdrawAndDetails> getDrawList() {
		   return drawList;
	 }
	@Transient
	public List<LuckdrawRecordAndCoupons>  recordCouponsList;
	@Transient
	public List<LuckdrawRecordAndCoupons> getrecordCouponsList() {
		   return recordCouponsList;
	 }

}
